//    Copyright (C) Kherty.  All rights reserved.
using OpenLS.Spreadsheet.Parsing;

namespace OpenLS.Spreadsheet.UI.Internals
{
    class LiteralFormulaToken: FormulaToken
    {
        public LiteralFormulaToken(Token originalToken): base (originalToken)
        {
        }
        internal override string Text
        {
            get { return Token.ToString(); }
        }
        internal bool IsLeftParenthesis
        {
            get
            {
                return Token is LeftParenthesis;
            }
        }
        internal bool IsRightParenthesis
        {
            get
            {
                return Token is RightParenthesis;
            }
        }
        internal bool IsComa
        {
            get
            {
                return Token is Coma;
            }
        }
        internal bool IsIdentifier
        {
            get
            {
                return Token is Identifier;
            }
        }
        internal bool IsConstant
        {
            get
            {
                return Token is ExplicitCharacter || Token is ExplicitString || Token is Numeric;
            }
        }
    }
}